# L1-080 乘法口诀数列
x, y, z = map(int, input().split())

nlist = [x, y]
index1 = 0
while len(nlist) < z:
    a, b = nlist[index1], nlist[index1 + 1]
    index1 += 1
    a, b = int(a), int(b)
    c = a * b
    nlist.extend([i for i in str(c)])

nlist = nlist[:z]

print(" ".join([str(i) for i in nlist]), end='')
